package com.ken.teacher.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class examDto {
    //绑定试卷的id
    private String paper_id;
    //班级id
    private String class_id;
    //发布时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime assignment_date;
    //过期时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime due_date;
    //状态：结束，未结束
    private String status;

    public examDto() {
    }

    public examDto(String paper_id, String class_id, LocalDateTime assignment_date, LocalDateTime due_date, String status) {
        this.paper_id = paper_id;
        this.class_id = class_id;
        this.assignment_date = assignment_date;
        this.due_date = due_date;
        this.status = status;
    }

    /**
     * 获取
     * @return paper_id
     */
    public String getPaper_id() {
        return paper_id;
    }

    /**
     * 设置
     * @param paper_id
     */
    public void setPaper_id(String paper_id) {
        this.paper_id = paper_id;
    }

    /**
     * 获取
     * @return class_id
     */
    public String getClass_id() {
        return class_id;
    }

    /**
     * 设置
     * @param class_id
     */
    public void setClass_id(String class_id) {
        this.class_id = class_id;
    }

    /**
     * 获取
     * @return assignment_date
     */
    public LocalDateTime getAssignment_date() {
        return assignment_date;
    }

    /**
     * 设置
     * @param assignment_date
     */
    public void setAssignment_date(LocalDateTime assignment_date) {
        this.assignment_date = assignment_date;
    }

    /**
     * 获取
     * @return due_date
     */
    public LocalDateTime getDue_date() {
        return due_date;
    }

    /**
     * 设置
     * @param due_date
     */
    public void setDue_date(LocalDateTime due_date) {
        this.due_date = due_date;
    }

    /**
     * 获取
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    public String toString() {
        return "paperDto{paper_id = " + paper_id + ", class_id = " + class_id + ", assignment_date = " + assignment_date + ", due_date = " + due_date + ", status = " + status + "}";
    }
}
